home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / number.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.5 KB  |  93 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.27.12;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @// $Id$
  33. #ifndef CLASS_NUMBER_H
  34. #define CLASS_NUMBER_H
  35.  
  36. #ifndef EXEC_TYPES_H
  37. #include <exec/types.h>
  38. #endif
  39.  
  40. #ifndef INTUITION_INTUITION_H
  41. struct Image ;
  42. #endif
  43.  
  44. #ifndef CLASS_WINDOW_H
  45. class window ;
  46. #endif
  47.  
  48. #ifndef CLASS_GADGETLIST_H
  49. class gadgetlist ;
  50. #endif
  51.  
  52. #ifndef CLASS_GADGET_H
  53. #include "gadgets/gadget.h"
  54. #endif
  55.  
  56. // ========================================================================
  57. // ==========================  NUMBER CLASS ===============================
  58. // ========================================================================
  59.  
  60. class number : public gadget
  61. {
  62.     Image       *im ;
  63.     TextFont    *gfont ;
  64. public:
  65.     long curval ;
  66.     number(gadgetlist *gl,
  67.            void (window::*func)(gadget *, unsigned long, unsigned short),
  68.            const char *title, long val, long max=10,
  69.            unsigned long flags=PLACETEXT_LEFT,
  70.            unsigned long justify=0) ;
  71.     ~number() ;
  72.     void action(unsigned long, unsigned short) ;
  73.     void keystroke(BOOL shifted) ;
  74.     void set(long val) ;
  75. };
  76. #endif
  77. @
  78.  
  79.  
  80. 1.1
  81. log
  82. @Initial revision
  83. @
  84. text
  85. @d1 1
  86. d31 2
  87. a32 1
  88.     Image   *im ;
  89. d37 1
  90. a37 1
  91.            STRPTR title, long val, long max=10,
  92. @
  93.